<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition>
	<h:panelGrid columns="2" style="width:100%">
		<h:outputText value="Title" style="width:100px" />
		<p:inputText value="#{flyerModel.title}" style="width:90%" />
		<h:outputText value="Language" style="width:100px" />
		<p:selectOneRadio value="#{flyerModel.language}">
			<f:selectItems value="#{flyerModel.availableLanguages}"
				var="language" itemValue="#{language}" itemLabel="#{language.label}"></f:selectItems>
		</p:selectOneRadio>
		<h:outputText value="Valid date and time" style="width:100px" />
		<p:inputText value="#{flyerModel.validDate}" style="width:90%" />
		<h:outputText value="Description" style="width:100px" />
		<p:inputTextarea value="#{flyerModel.description}"
			style="width:90%;height:150px"></p:inputTextarea>
		<h:commandLink value="Generate Flyer">
			<p:fileDownload value="#{flyerController.flyerPdf}"></p:fileDownload>
		</h:commandLink>
	</h:panelGrid>
</ui:composition>
</html>